import java.util.Scanner;

public class operator {

    public static void main(String[] args){

        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNextInt()){
            int day = scanner.nextInt();
            if(((day % 4 == 0) && (day % 100 != 0)) || (day % 400 == 0)){
                System.out.println(day + "是闰年!");
            }
            else{
                System.out.println(day + "不是闰年!");
            }
        }

    }

    public static void main5(String[] args){
        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();
        switch(i)
        {
            case 1:
                System.out.println("学习，敲代码!");
                break;
            case 2:
                System.out.println("买菜");
                break;
            case 3:
                System.out.println("上班");
                break;
            default:
                System.out.println(i+"为非法输入，请重新输入!");
        }
    }

    public static void main4(String[] args){
        //练习
//        Scanner scanner1 = new Scanner(System.in);
//        int n = scanner1.nextInt();
//        if(n == 3){
//            System.out.println("welcome!");
//        }
//        else{
//            System.out.println("no");
//        }
//        Scanner scanner2 = new Scanner(System.in);
//        int n2 = scanner2.nextInt();
//        Scanner scanner3 = new Scanner(System.in);
//        int n3 = scanner3.nextInt();
//        Scanner scanner4 = new Scanner(System.in);
//        int n4 = scanner4.nextInt();
//        Scanner scanner5 = new Scanner(System.in);
//        int n5 = scanner5.nextInt();
//        Scanner scanner6 = new Scanner(System.in);
//        int n6 = scanner6.nextInt();
//        Scanner scanner7 = new Scanner(System.in);
//        int n7 = scanner7.nextInt();
    }

    public static void main3(String[] args){
        int a = 2;
        int b = 3;
        System.out.println(a == b);
        System.out.println(a >= b);
        System.out.println(a <= b);
        System.out.println(a != b);
        System.out.println(a > b);
        System.out.println(a < b);
    }

    public static void main2(String[] args){
        short s1 = 10;
        //s1 = s1 + 1; //需要强制类型转化,否则报错
        s1 += 1;
    }

    public static void main1(String[] args){
        System.out.println(10 % 3);
        System.out.println(10 % -3);
        System.out.println(-10 % 3);
        System.out.println(-10 % -3);
    }
}
